#include <stdio.h>
#include <stdlib.h>
#include <math.h>

int main()
{
	int counter = 0;
	char str[100];
	
	while(((str[counter] = getchar()) != '\n'))counter ++;
	//printf("%d", counter);
	
	int i = 0;
	int j = 0;
	
	while(counter != i)
	{
		for(i; i < counter ; i ++)
		{
			putchar(str[i]);
			putchar(' ');		
		}
		putchar('\n');
		j ++;
		i = j;
	}
	return 0;
}